Magma (algebra)

In abstract algebra, a magma (or groupoid; not to be confused with groupoids in category theory) is a basic kind of algebraic structure. Specifically, a magma consists of a set M equipped with a single binary operation M × MM. A binary operation is closed by definition, but no other axioms are imposed on the operation.

The term magma for this kind of structure was introduced by Nicolas Bourbaki. The term groupoid is an older, but still commonly used alternative which was introduced by Øystein Ore.

Contents

Definition

A magma is a set M matched with an operation "•" that sends any two elements a,b\in M to another element ab. The symbol "•" is a general placeholder for a properly defined operation. To qualify as a magma, the set and operation (M, •) must satisfy the following requirement (known as the magma axiom):

For all a, b in M, the result of the operation ab is also in M.

Etymology

In French, the word "magma" has multiple common meanings, one of them being "jumble". It is likely that the French Bourbaki group referred to sets with well-defined binary operations as magmas with the "jumble" definition in mind.

Types of magmas

Magmas are not often studied as such; instead there are several different kinds of magmas, depending on what axioms one might require of the operation. Commonly studied types of magmas include

Magma to Group.svg
From magma to group, via two alternative paths. Key:
M = magma, d = divisibility, a = associativity,
Q = quasigroup, S = semigroup, e = identity.
L = loop, i = invertibility, N = monoid, G = group
Note that both divisibility and invertibility imply
the existence of the cancellation property.

Morphism of magmas

A morphism of magmas is a function f\colon M\to N mapping magma M to magma N, that preserves the binary operation:

f(x \; *_M \;y) = f(x) \; *_N\; f(y)

where *_M and *_N denote the binary operation on M and N respectively.

Combinatorics and parentheses

For the general, non-associative case, the magma operation may be repeatedly iterated. To denote pairings, parentheses are used. The resulting string consists of symbols denoting elements of the magma, and balanced sets of parenthesis. The set of all possible strings of balanced parenthesis is called the Dyck language. The total number of different ways of writing n applications of the magma operator is given by the Catalan number C_n. Thus, for example, C_2=2, which is just the statement that (ab)c and a(bc) are the only two ways of pairing three elements of a magma with two operations.

A shorthand is often used to reduce the number of parentheses. This is accomplished by using juxtaposition in place of the operation. For example, if the magma operation is *, then xy*z abbreviates (x * y) * z. Further abbreviations are possible by inserting spaces, for example by writing xy*z * wv in place of ((x * y) * z) * (w * v). Of course, for more complex expressions the use of parenthesis turns out to be inevitable. A way to avoid completely the use of parentheses is prefix notation.

Free magma

A free magma M_X on a set X is the "most general possible" magma generated by the set X (that is there are no relations or axioms imposed on the generators; see free object). It can be described, in terms familiar in computer science, as the magma of binary trees with leaves labeled by elements of X. The operation is that of joining trees at the root. It therefore has a foundational role in syntax.

A free magma has the universal property such that, if f\colon X\to N is a function from the set X to any magma N, then there is a unique extension of f to a morphism of magmas f^\prime

f^\prime\colon M_X \to N.

See also: free semigroup, free group, Hall set

More definitions

Group-like structures
Totality Associativity Identity Inverses
Group Yes Yes Yes Yes
Monoid Yes Yes Yes No
Semigroup Yes Yes No No
Loop Yes No Yes Yes
Quasigroup Yes No No Yes
Magma Yes No No No
Groupoid No Yes Yes Yes
Category No Yes Yes No

A magma (S, *) is called

If * is instead a partial operation, then S is called a partial magma.

Generalizations

See n-ary group.

See also

References